<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>分类管理</title>
    <link rel="stylesheet" href="../../layui/css/layui.css">
    <script src="../../layui/layui.js"></script>
    <script src="../../layui/js/global.js"></script>
    <script src="../../layui/js/jquery-3.1.1.min.js"></script>

    <script src="../../layui/js/sys/gametypemanage.js"></script>
</head>
<body>
<div class="layui-container">
    <!-- 上方面包屑导航-->
    <div>
        <span class="layui-breadcrumb">
          <a href="../index.html" target="_top">首页</a>
          <a><cite>分类管理</cite></a>
        </span>
    </div>
    <!-- 下方表格 -->
    <table id="gametypeTable" lay-filter="gametypeTable"></table>

</div>
<div id="addDiv" style="display: none">
    <div style="text-align: center">
        <h3 style="margin: 15px">添加分类</h3>
        <form id="addForm" class="layui-form">
            <div class="layui-form-item">
                <label class="layui-form-label">分类名称</label>
                <div class="layui-input-block">
                    <input type="text" name="typename" required  lay-verify="required" placeholder="请输入类别名称" autocomplete="off" class="layui-input" style="width:200px">
                </div>
            </div>
        </form>
    </div>
</div>

<script type="text/html" id="toolbar">
    <div class="layui-btn-container">
        <button class="layui-btn layui-btn-sm" lay-event="add">添加</button>
    </div>
</script>

<script type="text/html" id="isdelTpl">
    {{#  if(d.isdel == 1){ }}
    <span style="color:red"> 已删除</span>
    {{#  } else { }}
    <span>未删除</span>
    {{#  } }}
</script>
<script type="text/html" id="rowBar">
    <a class="layui-btn layui-btn-xs" lay-event="edit">更新</a>
    {{#  if(d.isdel == 1){ }}
    <button class="layui-btn layui-btn-warm layui-btn-xs" lay-event="relive" style="width:60px;" >恢复删除</button>
    {{#  } else { }}
    <button class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del"  style="width:60px;" >删&nbsp;&nbsp;&nbsp;&nbsp;除</button>
    {{#  } }}

</script>

<script>
    var oldname = '' ;
    layui.use(['layer','table'], function(){
        var layer = layui.layer;
        var table = layui.table ;
        initTable(table) ;
    });
</script>
</body>
</html>